package com.car.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.io.Serializable;

@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName("t_car")
public class Car implements Serializable {
    @TableId("carId")
    private Integer carId;
    private int carState;
    private String carIdCard;
    private String carBrand;
    private String carModel;
    private int carPrice;
    private int carDriverType;
    private String carColor;
    private double carOilValue;
    private double carElectricValue;
    private String carContractStart;
    private String carContractEnd;
    private int carSetNum;
    private String carBuyDate;
    private String carEngineId;
    private String carFrameId;
    private int departmentId;
    private int userId;
    private String carOwnerName;
    private String carOwnerIdCard;
    private String carOwnerPhone;
    private int carType;
    private int carIsAuto;
    private double carDisplacement;
    private String carImage;
    private double carHygieneMoney;
    @TableField(exist = false)
    private User user;
    @TableField(exist = false)
    private Department department;
}
